package com.digital.herbarium.Mapper;

import com.digital.herbarium.Entity.Role;
import com.digital.herbarium.Entity.RoleMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface RoleMapper {

    List<Role> getRoleInfo(Role role);

    void delRole(@Param("ids") Long[] id);

    void addRole(Role role);

    void editRole(Role role);

    void delRoleMenu(@Param("ids") Long[] id);

    void bachAdd(@Param("list") List<RoleMenu> list);

    Integer getCount(Role role);

    List<Role> getRoleInfoById(@Param("ids") Long[] id);

}
